<include file="Public:head"/>
		<div class="col-xs-12">
			<div class="tabbable">
				<table class="layui-table">
					<tr>
						<th width="10%"> 搜索用户名：</th>
						<td>
							<form class="form-inline" action=""> 
								<div class="layui-input-inline">
		                            <input type="text" name="username" placeholder="请输入用户名" value="{$Think.get.username}" class="layui-input">
		                        </div>
								<input class="layui-btn layui-btn-small" type="submit" value="搜索">
							</form>
						</td>
					</tr>
				</table>
				<table class="layui-table">
					<tr>
						<th width="10%">用户名</th>
						<th>操作</th>
					</tr>
					<foreach name="user_data" item="v">
						<tr>
							<th>{$v['username']}</th>
							<td>
								<if condition="in_array($v['id'],$uids)">
									已经是{$group_name}
								<else/> 
									<a href="{:U('Admin/Rule/add_user_to_group',array('uid'=>$v['id'],'group_id'=>$_GET['group_id'],'username'=>$_GET['username']))}">设为{$group_name}</a>
								</if>
							</td>
						</tr>
					</foreach>
				</table>
				<a href="{:U('group')}" class="btn btn-danger">返回</a>
			</div>
		</div>
<include file="Public:foot"/>